var app = new Vue({
	el: "#app",
	data: {
		word_books: []
	},
	methods: {
		init: function() {
			var that = this;
			static_ajax.post("/wordbook/all")
				.success(function(e) {
					var word_books = e.word_books;
					for (var i in word_books) {
						var item = word_books[i];
						item.img = static_data.pre_api_url + "/" + item.img;
					}
					that.word_books = word_books;
				})
				.ajax();
		}
	}
});

app.init();